package com.himalayan.bear.dao;

import com.himalayan.bear.entity.Folder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zjk
 * @since 2019-05-30
 */
public interface FolderMapper extends BaseMapper<Folder> {

    /**
     * 查询指定文件夹的所有父级文件夹
     *
     * @param folderId
     * @return
     */
    List<Map<String, Object>> parentList(@Param("folderId") String folderId);
}
